<?php
session_start();
$page = 'register';
if(@$_SESSION['userdata']['logged_in'] == "TRUE"){
	header("Location:member-home.php");
}
include('check-and-add.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta name="viewport" content="width=320, user-scalable=no" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Register</title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="body-wrapper">
<div id="header"><?php include('menu.php');?></div>
<div id="Content">

<form action="#" method="post" >
<fieldset title="Plan a Trip"><legend>Register</legend>
<div class="error-msg"><?php if((@isset($array))){
foreach (@$array as $i => $value) print_r($value."<br>");
} ?></div>
<div class="row" style="margin-top:10px;">
<label	for="start-address"> Email </label><br/>
<input type="text" size="30" name="email" value="<?php echo @$_POST['email']; ?>"></input></div>
<label>Choose Password</label><br/>
<div class="row" style="margin-top:10px;">
<input type="password" size="30" name="pass"></input></div>
<label>Confirm Password</label><br/>
<div class="row" style="margin-top:10px;">
<input type="password" size="30" name="confirm"></input>
</div>
</fieldset>
<div class="row"><input type="submit" value="Complete Registration" name="register"></input>
</div>
</form>
<div class="clear"></div>
</div>
</div>
</body>
</html>
